package com.lyl.activiti.demo.listener;

import java.util.logging.Logger;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

public class Initialization implements JavaDelegate {
	private static final Logger log = Logger.getLogger(Initialization.class
			.getName());

	public void execute(DelegateExecution execution) throws Exception {
		log.info("variavles=" + execution.getVariables());
		execution.setVariable("m:i", "Mainprocess:Initialization");
		log.info("I am Initialization in mainprocess.");

		execution.setVariable("varOutFromMainprocess", "AAAA");
		log.info("in mainprocess set(varOutFromMainprocess): "
				+ execution.getVariable("varOutFromMainprocess"));

	}

}
